package xyz.hzxiao;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 * 用户认证信息
 *
 * @author ：FuXx
 * @className : xyz.hzxiao.UserAuthorityEntity
 * @since ：2023/5/13
 */
@TableName("user_authority")
public class UserAuthorityEntity implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private Long userId;

    private Integer authorityId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getAuthority_id() {
        return authorityId;
    }

    public void setAuthorityId(Integer authorityId) {
        this.authorityId = authorityId;
    }

    @Override
    public String toString() {
        return "UserAuthorityEntity{" +
                "id=" + id +
                ", userId=" + userId +
                ", authority_id=" + authorityId +
                '}';
    }
}
